/*
 * PowerDriver.h
 *
 *  Created on: 26.11.2012
 *      Author: Michael
 */

#ifndef TB6612FNG_H_
#define TB6612FNG_H_

#include "hal_pwm.h"

#define FREQUENCY				10000//30000
#define NUM_OF_STEPS			5000//256

enum direction{
	CW = 0,
	CCW,
	STOP
};

class PowerDriver{
public:
	PowerDriver();
	virtual ~PowerDriver();

	void GPIO_init();
	void setDirection(int dir);
	void setSpeed(int speed);
	void setSpeedPercentage(float percentage);
private:
	PWM pwm;
};

#endif /* TB6612FNG_H_ */
